@extends('enterprise.layout.common')
@section('content')
    <link rel="stylesheet" href="{{asset('css/enterprise/pressCenter.css')}}">
        <!--头部-->

        <!--内容-->
        <section class="">
            <div class="banner">
                <img src="{{asset('/images/enterprise/u503.png')}}" alt="">
            </div>
            <div class="">
                <div class="layui-tab layui-tab-card">
                    <ul class="layui-tab-title cl w1200 w90">
                        <li style="border:none;-webkit-border-radius: 15px 0 0 15px;-moz-border-radius: 15px 0 0 15px;border-radius: 15px 0 0 15px;">公司动态</li>
                        <li>行业新闻</li>
                        <li>媒体新闻</li>
                        <li   class="layui-this"  style="border:none;-webkit-border-radius: 0 15px 15px 0;-moz-border-radius: 0 15px 15px 0;border-radius: 0 15px 15px 0;">货满仓印象</li>
                    </ul>
                    <div class="layui-tab-content" style="">
                        <ul class="layui-tab-item w1200 cl">
                            @foreach($list1 as $v)
                            <li class="cl Flex">
                                <div class="left Flex around">
                                    <div class="bgFF3300">
                                        <p>{{date('Y',strtotime($v->created_at))}}<br/><span>{{date('m.d',strtotime($v->created_at))}}</span></p>
                                    </div>
                                    <div class="imgbox6">
                                        <img src="{{$v->img_url}}" alt="">
                                    </div>
                                </div>
                                <div class="right">
                                    <a href="{{URL('enterprise/articleInfo/'.$v->id)}}" style="font-size: 21px;line-height:60px;">{{$v->title}}</a><br/>
                                    <p>{!! $v->content !!}</p>
                                    <a href=""><button type="button" class="layui-btn layui-btn-radius layui-btn-primary">公司动态</button></a>
                                </div>
                            </li>
                            @endforeach
                            <div class="pag">
                                {{ $list1->links()}}
                                {{--<div id="demo1"></div>--}}
                            </div>
                        </ul>
                        <ul class="layui-tab-item w1200 cl">
                            @foreach($list2 as $v)
                            <li class="cl Flex">
                                <div class="left Flex around">
                                    <div class="bgFF3300">
                                        <p>{{date('Y',strtotime($v->created_at))}}<br/><span>{{date('m.d',strtotime($v->created_at))}}</span></p>
                                    </div>
                                    <div class="imgbox6">
                                        <img src="{{$v->img_url}}" alt="">
                                    </div>
                                </div>
                                <div class="right">
                                    <a href="{{URL('enterprise/articleInfo/'.$v->id)}}" style="font-size: 21px;line-height:60px;">{{$v->title}}</a><br/>
                                    <p>{!! $v->content !!}</p>
                                    <a href=""><button type="button" class="layui-btn layui-btn-radius layui-btn-primary">公司动态</button></a>
                                </div>
                            </li>
                            @endforeach
                            <div class="pag">
                                {{ $list2->links()}}
                                {{--<div id="demo2"></div>--}}
                            </div>
                        </ul>
                        <ul class="layui-tab-item w1200 cl">
                            @foreach($list3 as $v)
                            <li class="cl Flex">
                                <div class="left Flex around">
                                    <div class="bgFF3300">
                                        <p>{{date('Y',strtotime($v->created_at))}}<br/><span>{{date('m.d',strtotime($v->created_at))}}</span></p>
                                    </div>
                                    <div class="imgbox6">
                                        <img src="{{$v->img_url}}" alt="">
                                    </div>
                                </div>
                                <div class="right">
                                    <a href="{{URL('enterprise/articleInfo/'.$v->id)}}" style="font-size: 21px;line-height:60px;">{{$v->title}}</a><br/>
                                    <p>{!! $v->content !!}</p>
                                    <a href=""><button type="button" class="layui-btn layui-btn-radius layui-btn-primary">公司动态</button></a>
                                </div>
                            </li>
                            @endforeach
                            <div class="pag">
                                {{ $list3->links()}}
                                {{--<div id="demo2-1"></div>--}}
                            </div>
                        </ul>
                        <ul class="layui-tab-item layui-show cl  w1200 w367">
                            @foreach($list4 as $v)
                            <li>
                                {!! $v->content !!}
                                {{--<img src="{{asset('/images/enterprise/u123.png')}}" alt="">
                                苏宁帮客家成行业新标杆--}}
                            </li>
                            @endforeach
                            <div class="pag">
                                {{ $list4->links()}}
                                {{--<div id="demo2-2"></div>--}}
                            </div>
                        </ul>
                    </div>
                </div>
            </div>

        </section >
        <!--脚-->
@endsection
<script src="{{asset('/common/enterprise/jquery-3.3.1.js')}}"></script>
<script src="{{asset('/plug/layui/layui.js')}}"></script>
        <script>
/*            $(function(){
                layui.use(['laypage', 'layer'], function(){
                    var laypage = layui.laypage
                        ,layer = layui.layer;
                    //总页数大于页码总数
                    laypage.render({
                        elem: 'demo1'
                        ,count: 70 //数据总数
                        ,jump: function(obj){
                            console.log(obj)
                        }
                    });

                    //自定义样式
                    laypage.render({
                        elem: 'demo2'
                        ,count: 100
                        ,theme: '#1E9FFF'
                    });
                    laypage.render({
                        elem: 'demo2-1'
                        ,count: 100
                        ,theme: '#FF5722'
                    });
                    laypage.render({
                        elem: 'demo2-2'
                        ,count: 100
                        ,theme: '#FFB800'
                    });

                    //自定义首页、尾页、上一页、下一页文本
                    laypage.render({
                        elem: 'demo3'
                        ,count: 100
                        ,first: '首页'
                        ,last: '尾页'
                        ,prev: '<em>←</em>'
                        ,next: '<em>→</em>'
                    });

                    //将一段数组分页展示

                    //测试数据
                    var data = [
                        '北京',
                        '上海',
                        '广州',
                        '深圳',
                        '杭州',
                        '长沙',
                        '合肥',
                        '宁夏',
                        '成都',
                        '西安',
                        '南昌',
                        '上饶',
                        '沈阳',
                        '济南',
                        '厦门',
                        '福州',
                        '九江',
                        '宜春',
                        '赣州',
                        '宁波',
                        '绍兴',
                        '无锡',
                        '苏州',
                        '徐州',
                        '东莞',
                        '佛山',
                        '中山',
                        '成都',
                        '武汉',
                        '青岛',
                        '天津',
                        '重庆',
                        '南京',
                        '九江',
                        '香港',
                        '澳门',
                        '台北'
                    ];

                    //调用分页
                    laypage.render({
                        elem: 'demo20'
                        ,count: data.length
                        ,jump: function(obj){
                            //模拟渲染
                            document.getElementById('biuuu_city_list').innerHTML = function(){
                                var arr = []
                                    ,thisData = data.concat().splice(obj.curr*obj.limit - obj.limit, obj.limit);
                                layui.each(thisData, function(index, item){
                                    arr.push('<li>'+ item +'</li>');
                                });
                                return arr.join('');
                            }();
                        }
                    });

                });
            })*/
        </script>
